package com.tbit.uqbike.webmanager.req.tag.bind;

import com.tbit.uqbike.service.business.tag.validation.group.bind.TagByMachineInfoGroup;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * 标记批量操作请求
 *
 *
 * @author <a href="mailto:chen.chaoxiong@tbit.com.cn">ChenChaoXiong</a>
 * @since 2024/7/8
 */
@Data
public class TagBatchReq {

    /**
     * 品牌ID
     */
    @NotNull
    private Integer brandId;

    /**
     * 区域ID
     */
    @NotNull
    private Integer accountId;

    /**
     * 操作类型，添加:add,取消:cancel
     */
    @NotBlank(groups = {TagByMachineInfoGroup.class})
    private String oprationType;

    /**
     * 车辆编码
     */
    @NotEmpty(groups = {TagByMachineInfoGroup.class})
    private List<String> machineInfo;

    /**
     * 车辆信息类型，设备编号:machineNo 用户码:userCode,车辆ID:machineId
     */
    @NotBlank(groups = {TagByMachineInfoGroup.class})
    private String machineInfoType;

    /**
     * 标签ID
     */
    @NotEmpty
    private List<String> tagIds;


}
